package com.han.dao.abstraction.product;

import java.sql.SQLException;
import java.util.ArrayList;
import javax.naming.NamingException;
import com.han.bom.Question;

public interface GenericAnswerDAO {
	public ArrayList<String> retrieveAnswersByQuestion(String questionid)
			throws SQLException, ClassNotFoundException, NamingException;

	public boolean addAnswerToQuestion(Question question)
			throws ClassNotFoundException, SQLException, NamingException;

	public boolean updateAnswer(String answerid, String answer,
			boolean iscorrect) throws ClassNotFoundException, SQLException,
			NamingException;
}